{
 "cells": [
  {
   "cell_type": "code",
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2025-09-21T15:57:36.196552Z",
     "start_time": "2025-09-21T15:57:36.081005Z"
    }
   },
   "source": "import numpy as np",
   "outputs": [],
   "execution_count": 1
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-09-21T15:58:40.834335Z",
     "start_time": "2025-09-21T15:58:40.827531Z"
    }
   },
   "cell_type": "code",
   "source": [
    "a=np.array([1,2,3,4])\n",
    "b=np.array([1,2,3,4])\n",
    "print(a*b)"
   ],
   "id": "5a2452eafb65964c",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[ 1  4  9 16]\n"
     ]
    }
   ],
   "execution_count": 2
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-09-21T15:59:18.566331Z",
     "start_time": "2025-09-21T15:59:18.549254Z"
    }
   },
   "cell_type": "code",
   "source": [
    "c=np.arange(4)\n",
    "print(c)"
   ],
   "id": "4a573439f6668885",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[0 1 2 3]\n"
     ]
    }
   ],
   "execution_count": 3
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-09-21T15:59:29.406233Z",
     "start_time": "2025-09-21T15:59:29.388818Z"
    }
   },
   "cell_type": "code",
   "source": "print(a*c)",
   "id": "c8554cb462c8802a",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[ 0  2  6 12]\n"
     ]
    }
   ],
   "execution_count": 4
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-09-21T15:59:58.035616Z",
     "start_time": "2025-09-21T15:59:58.030265Z"
    }
   },
   "cell_type": "code",
   "source": "print(a+c)",
   "id": "348276b11d47d5c4",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[1 3 5 7]\n"
     ]
    }
   ],
   "execution_count": 6
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-09-21T16:01:54.125815Z",
     "start_time": "2025-09-21T16:01:54.117292Z"
    }
   },
   "cell_type": "code",
   "source": [
    "aa=np.array([[1,2,3],[4,5,6],[7,8,9]])\n",
    "bb=np.array([[7,8,9],[4,5,6],[1,2,3]])\n",
    "print(aa+bb)"
   ],
   "id": "4adc9f5eb468c234",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[ 8 10 12]\n",
      " [ 8 10 12]\n",
      " [ 8 10 12]]\n"
     ]
    }
   ],
   "execution_count": 7
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-09-21T16:02:29.032436Z",
     "start_time": "2025-09-21T16:02:29.025962Z"
    }
   },
   "cell_type": "code",
   "source": "print(aa*bb)",
   "id": "5a0df956449c189f",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[ 7 16 27]\n",
      " [16 25 36]\n",
      " [ 7 16 27]]\n"
     ]
    }
   ],
   "execution_count": 8
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-09-21T16:04:52.760984Z",
     "start_time": "2025-09-21T16:04:52.745281Z"
    }
   },
   "cell_type": "code",
   "source": "print(np.multiply(aa,bb))",
   "id": "cc84a266a5ebe728",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[ 7 16 27]\n",
      " [16 25 36]\n",
      " [ 7 16 27]]\n"
     ]
    }
   ],
   "execution_count": 9
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-09-21T16:06:31.191562Z",
     "start_time": "2025-09-21T16:06:31.173979Z"
    }
   },
   "cell_type": "code",
   "source": [
    "c=np.array([[1,2,3],[4,5,6]])\n",
    "d=np.array([[9,8],[6,5],[3,2]])\n",
    "print(np.dot(c,d))"
   ],
   "id": "e50131d8c2b14060",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[30 24]\n",
      " [84 69]]\n"
     ]
    }
   ],
   "execution_count": 10
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-09-21T16:10:29.669164Z",
     "start_time": "2025-09-21T16:10:29.662370Z"
    }
   },
   "cell_type": "code",
   "source": "print(c.dot(d))",
   "id": "33e04a82e44ad18c",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[30 24]\n",
      " [84 69]]\n"
     ]
    }
   ],
   "execution_count": 11
  },
  {
   "metadata": {},
   "cell_type": "code",
   "outputs": [],
   "execution_count": null,
   "source": "",
   "id": "96f7dc3c3dbc36f7"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
